package org.example.design.abstractFactory.itf;

import java.util.concurrent.TimeUnit;

/**
 * @Classname ICacheAdapter
 * @Description 缓存适配器接口
 * @Date 2020/10/30 3:17 下午
 * @Created by xiangjd
 */
public interface ICacheAdapter {
    String get(String key);

    void set(String key, String value);

    void set(String key, String value, long timeout, TimeUnit timeUnit);

    void del(String key);
}
